@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  font-size: 13px;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  overflow-y: scroll!important;//el-image点击此标签会出发预览导致滚动条消失
}

.el-form-item__label {
    font-size: 13px;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;

  a {
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  //padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.flex {
		display: flex!important;
		display: -webkit-flex!important;
		display: -moz-flex!important;
		display: -ms-flex!important;
		display: -o-flex!important;
	}

	.flex-1 {
		flex: 1;
	}

	.f-a-c {
		align-items: center;
	}
  .f-a-s {
    align-items: flex-start;
  }

	.f-a-e {
		align-items: flex-end;
	}

	.f-j-c {
		justify-content: center;
	}

	.f-j-s {
		justify-content: space-between;
	}

	.f-j-e {
		justify-content: flex-end;
	}

	.f-c {
		flex-direction: column;
	}

	.f-n {
		flex-wrap: nowrap;
	}

	.f-w {
		flex-wrap: wrap;
	}
	.f-s-0 {
		flex-shrink:  0;
	}
  .f18-size {
  	font-size: 18px!important;
  }
  .f16-size {
  	font-size: 16px!important;
  }
  .f13-size {
  	font-size: 13px!important;
  }
  .f12-size {
  	font-size: 12px!important;
  }
  .f10-size {
  	font-size: 10px!important;
  }
  .f15-size {
  	font-size: 15px!important;
  }
  .f20-size {
  	font-size: 20px!important;
  }
  .f24-size {
  	font-size: 24px!important;
  }.f26-size {
  	font-size: 26px!important;
  }
  .h-6 {
  	height: 6px!important;
  }
  .h-10 {
  	height: 10px!important;
  }
  .h-26 {
  	height: 26px!important;
  }
  .h-34 {
  	height: 34px!important;
  }
  .h-36 {
  	height: 36px!important;
  }
  .h-40 {
  	height: 40px!important;
  }
  .h-46 {
  	height: 46px!important;
  }
  .h-50 {
  	height: 50px!important;
  }
  .h-60 {
  	height: 60px!important;
  }
  .h-80 {
  	height: 80px!important;
  }
  .h100 {
  	height: 100%;
  }
  .w-12 {
  	width: 12px!important;
  }
  .w-15 {
  	width: 15px!important;
  }
  .w-20 {
  	width: 20px!important;
  }
  .w-30 {
  	width: 30px!important;
  }
  .w-34 {
  	width: 34px!important;
  }
  .w-36 {
  	width: 36px!important;
  }
  .w-50 {
  	width: 50px!important;
  }
  .w-60 {
  	width: 60px!important;
  }
  .w-80 {
  	width: 80px!important;
  }
  .w-120 {
  	width: 120px!important;
  }
  .w-150 {
  	width: 150px!important;
  }
  .w-180 {
  	width: 180px!important;
  }
  .w-200 {
  	width: 200px!important;
  }
  .w-230 {
  	width: 230px!important;
  }
  .w-500 {
  	width: 500px!important;
  }
  .b-radius {
    border-radius: 50%;
  }
  .b-radius-2 {
    border-radius: 2px;
  }
  .margin-12 {
  	margin: 12px!important;
  }
  .margin-15 {
  	margin: 15px!important;
  }
  .margin-t2 {
  	margin-top: 2px!important;
  }
  .margin-t4 {
  	margin-top: 4px!important;
  }
  .margin-t6 {
  	margin-top: 6px!important;
  }
  .margin-t8 {
  	margin-top: 8px!important;
  }
  .margin-t10 {
  	margin-top: 10px!important;
  }
  .margin-t12 {
  	margin-top: 12px!important;
  }
  .margin-t16 {
  	margin-top: 16px!important;
  }
  .margin-t20 {
  	margin-top: 20px!important;
  }
  .margin-t30 {
  	margin-top: 30px!important;
  }
  .margin-b16 {
  	margin-bottom: 16px!important;
  }
  .margin-r2 {
  	margin-right: 2px!important;
  }
  .margin-r4 {
  	margin-right: 4px!important;
  }
  .margin-r6 {
  	margin-right: 6px!important;
  }
  .margin-r8 {
  	margin-right: 8px!important;
  }
  .margin-r10 {
  	margin-right: 10px!important;
  }
  .margin-r12 {
  	margin-right: 12px!important;
  }
  .margin-r20 {
  	margin-right: 20px!important;
  }
  .margin-r40 {
  	margin-right: 40px!important;
  }
  .padding-15 {
  	padding: 15px!important;
  }
  .padding-10 {
  	padding: 10px!important;
  }
  .padding-12 {
  	padding: 12px!important;
  }
  .padding-30 {
  	padding: 30px!important;
  }
  .padding-lr2 {
  	padding: 0 2px!important;
  }
  .padding-lr6 {
  	padding: 0 6px!important;
  }
  .padding-lr10 {
  	padding: 0 10px!important;
  }
  .padding-lr12 {
  	padding: 0 12px!important;
  }
  .padding-lr15 {
  	padding: 0 15px!important;
  }
  .padding-tb6 {
  	padding:  6px 0!important;
  }
  .padding-tb10 {
  	padding:  10px 0!important;
  }
  .padding-tb12 {
  	padding:  12px 0!important;
  }
  .padding-tb15 {
  	padding:  15px 0!important;
  }
  .padding-tb25 {
  	padding:  25px 0!important;
  }
  .bg-color-5 {
    background-color: #f5f5f5;
  }
  .t-color-w {
    color: #fff!important;
  }
  .t-color-3 {
    color: #333!important;
  }
  .t-color-4 {
    color: #444444!important;
  }
  .t-color-5 {
    color: #575757!important;
  }
  .t-color-6 {
    color: #666!important;
  }
  .t-color-7 {
  	color: #d7d7d7!important;
  }
  .t-color-8 {
    color: #888!important;
  }
  .t-color-9 {
    color: #999!important;
  }
  .b-color-d {
    border: 1px solid #ddd;
  }
  .bottom-b {
    border-bottom: 1px solid #ddd;
  }
  .cursor {
    cursor: pointer;
  }
::-webkit-scrollbar {
     width: 7px;
     height: 10px;
     border-radius:15px;
     -webkit-border-radius:  15px;
   }
    ::-webkit-scrollbar-track-piece {
     background-color: #ffff;
     border-radius:15px;
     -webkit-border-radius:  15px;
   }
    ::-webkit-scrollbar-thumb:vertical {
     height: 7px;
     background-color: rgba(144, 147, 153, 0.5);
     border-radius: 15px;
     -webkit-border-radius:  15px;
   }
    ::-webkit-scrollbar-thumb:horizontal {
     width: 7px;
     background-color: rgba(144, 147, 153, 0.5);
     border-radius:  15px;
     -webkit-border-radius: 15px;
   }
.tips{
    font-size: 12px;
    color:#999;
    margin-left: 5px;
  }
  .line1 {
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 1;
   overflow: hidden;
   word-break: break-all;
  }
  .line2 {
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 2;
   overflow: hidden;
   word-break: break-all;
  }
p{
  margin: 0;
}




.mytree {
      overflow-y:auto;
      overflow-x:auto;
      .el-tree{
        display: flex;
        flex: 1;
      }
      .el-tree > .el-tree-node:after {
        border-top: none;
      }
      .el-tree-node {
        position: relative;
        padding-left: 16px;
      }
      // 节点有间隙，隐藏掉展开按钮就好了,如果觉得空隙没事可以删掉
      .el-tree-node__expand-icon.is-leaf {
        display: none;
      }
      .el-tree-node__children {
        padding-left: 16px;
      }
      .el-tree-node__content {
        padding-left: 24px!important;
      }

      .el-tree-node :last-child:before {
        height: 38px;
      }

      .el-tree > .el-tree-node:before {
        border-left: none;
      }

      .el-tree > .el-tree-node:after {
        border-top: none;
      }

      .el-tree-node:before {
        content: '';
        left: -4px;
        position: absolute;
        right: auto;
        border-width: 1px;
      }

      .el-tree-node:after {
        content: '';
        left: -4px;
        position: absolute;
        right: auto;
        border-width: 1px;
      }

      .el-tree-node:before {
        border-left: 1px dashed #1389BC;
        bottom: 0px;
        height: 100%;
        top: -26px;
        width: 1px;
      }

      .el-tree-node:after {
        border-top: 1px dashed #1389BC;
        height: 20px;
        top: 12px;
        width: 18px;
      }
      .el-tree .el-tree-node__expand-icon.expanded {
         -webkit-transform: rotate(0deg);
         transform: rotate(0deg);
       }
       .el-tree .el-icon-caret-right:before {
         content: "\e723";
         font-size: 16px;
         color: #1389BC;
         position: absolute;
         left: -20px;
         top: -8px;
       }
       .el-tree .el-tree-node__expand-icon.expanded.el-icon-caret-right:before{
         content: "\e722";
         font-size: 16px;
         color: #1389BC;
         position: absolute;
         left: -20px;
         top: -8px;
      }
      .el-tree-node__content>.el-tree-node__expand-icon {
        padding: 0;
      }
    }
